package com.linkage.cart.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.linkage.book.pojo.Book;
import com.linkage.cart.repository.CartitemRepositoryMapper;
import com.linkage.user.pojo.User;

@Service
public class CartitemService {

	@Autowired
	private CartitemRepositoryMapper catitemCartitemRepositoryMapper;
	
	public void addBookInCart(User user, Book book) {
		catitemCartitemRepositoryMapper.addBookInCart(user,book);
	}

}
